﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TopicIdeaReview.ascx.cs" Inherits="Lenovo.CFI.Web.VP.TopicIdeaReview" %>
<tbwc:StyleSheetControl ID="SscList" runat="server" CssPath="list.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SccDialogs" runat="server" CssPath="modaldialogs.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscDp" runat="server" CssPath="DatePicker/datepicker.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscThis" runat="server" CssPath="VP/topic/topicideareview.css"></tbwc:StyleSheetControl>
<ajaxToolKit:ToolkitScriptManager runat="Server" EnablePartialRendering="true" CombineScripts="false" ID="ScriptManager1">
    <Services>
        <asp:ServiceReference  Path="~/WS/IdeaReview.asmx" />
    </Services>
    <Scripts>
        <asp:ScriptReference Path="~/js/jquery-1.4.2.js" />
    </Scripts>
</ajaxToolKit:ToolkitScriptManager>
<asp:UpdateProgress ID="UpProgress" runat="server" DisplayAfter="1">
    <ProgressTemplate>
        <div class="ajaxwait">waiting...</div>
    </ProgressTemplate>
</asp:UpdateProgress>


<script type="text/javascript">

    setInterval("__doPostBack('VP$BtnRefresh'), ''", 30000);

    function savecv(rid, txt) {
        Lenovo.CFI.Web.WS.IdeaReview.SaveCV(
            rid, reviewer, txt.value,
            SaveSucceededCallback,
            null, null);

        return false;
    }

    function savebv(rid, txt) {
        Lenovo.CFI.Web.WS.IdeaReview.SaveBV(
            rid, reviewer, txt.value,
            SaveSucceededCallback,
            null, null);

        return false;
    }

    function savetv(rid, txt) {
        Lenovo.CFI.Web.WS.IdeaReview.SaveTV(
            rid, reviewer, txt.value,
            SaveSucceededCallback,
            null, null);

        return false;
    }

    function savetype(rid, ddl) {
        Lenovo.CFI.Web.WS.IdeaReview.SaveType(
            rid, reviewer, ddl.value,
            SaveSucceededCallback,
            null, null);

        return false;
    }

    function savecomment(rid, txt) {
        Lenovo.CFI.Web.WS.IdeaReview.SaveComment(
            rid, reviewer, txt.value,
            SaveSucceededCallback,
            null, null);

        return false;
    }

    function savesuggestion(rid, ddl) {
        Lenovo.CFI.Web.WS.IdeaReview.SaveSuggestion(
            rid, reviewer, ddl.value,
            SaveSucceededCallback,
            null, null);

        return false;
    }

    function saveip(rid, ddl) {
        Lenovo.CFI.Web.WS.IdeaReview.SaveIP(
            rid, reviewer, ddl.value,
            SaveSucceededCallback,
            null, null);

        return false;
    }

    function saveipcomment(rid, txt) {
        Lenovo.CFI.Web.WS.IdeaReview.SaveIPComment(
            rid, reviewer, txt.value,
            SaveSucceededCallback,
            null, null);

        return false;
    }

    function SaveSucceededCallback(result, userContext) {
        if (result != "null") {
        }
        else {
            alert(result);
        }
    }
</script>

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <div id="relatedoperation">
            <div style="float:right" class="operation"><asp:Button 
                ID="BtnRefresh" runat="server" SkinID="EditPrimary" Text="Refresh" ToolTip="Refresh" onclick="BtnRefresh_Click"/><asp:HyperLink
                ID="HlSchedule" runat="server" Target="_blank" SkinID="EditSecondary">Schedule</asp:HyperLink></div>
        </div>
        <div class="dataListArea">
            <tbwc:GridViewEx ID="GvList" runat="server" SkinID="List"
                AllowPaging="false" OnRowDataBound="GvList_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderText="No.">
                        <itemstyle cssclass="listNo" />
                        <itemtemplate><asp:Literal ID="LtrNo" runat="server"></asp:Literal></itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Time">
                        <itemtemplate><asp:Literal ID="LtrStartTime" runat="server"></asp:Literal></itemtemplate>
                        <ItemStyle CssClass="time" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Idea Name">
                        <itemtemplate><asp:Literal ID="LtrTitle" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="title" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Type">
                        <itemtemplate><asp:Literal ID="LtrType" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="type" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Author">
                        <itemtemplate><asp:Literal ID="LtrOwner" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="owner" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="CV">
                        <itemtemplate><asp:TextBox ID="TxtCv" runat="server" Width="2em"></asp:TextBox></itemtemplate>
                        <itemstyle cssclass="value" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="BV">
                        <itemtemplate><asp:TextBox ID="TxtBv" runat="server" Width="2em"></asp:TextBox></itemtemplate>
                        <itemstyle cssclass="value" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="TV">
                        <itemtemplate><asp:TextBox ID="TxtTv" runat="server" Width="2em"></asp:TextBox></itemtemplate>
                        <itemstyle cssclass="value" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Class">
                        <itemtemplate><asp:DropDownList ID="DdlType" runat="server" Width="6em"></asp:DropDownList></itemtemplate>
                        <itemstyle cssclass="class" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Comment">
                        <itemtemplate><asp:TextBox ID="TxtComment" runat="server" Width="12em" TextMode="MultiLine" Rows="2"></asp:TextBox></itemtemplate>
                        <itemstyle cssclass="comment" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Suggestion">
                        <itemtemplate><asp:DropDownList ID="DdlSuggestion" runat="server" Width="7em"></asp:DropDownList></itemtemplate>
                        <itemstyle cssclass="suggestion" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="IP">
                        <itemtemplate><asp:DropDownList ID="DdlIP" runat="server" Width="3em">
                            <asp:ListItem Text=" " Value=""></asp:ListItem>
                            <asp:ListItem Text="Y" Value="1"></asp:ListItem>
                            <asp:ListItem Text="N" Value="0"></asp:ListItem>
                        </asp:DropDownList>
                        </itemtemplate>
                        <itemstyle cssclass="ip" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="IP Comment">
                        <itemtemplate><asp:TextBox ID="TxtIPComment" runat="server" Width="12em" TextMode="MultiLine" Rows="2"></asp:TextBox></itemtemplate>
                        <itemstyle cssclass="comment" />
                    </asp:TemplateField>
                </Columns>
            </tbwc:GridViewEx>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>

    <div class="operation" style="padding:8px 0px 8px 16em"><asp:Button 
        ID="BtnSave" runat="server" CssClass="primary" Text="Save" OnClientClick="return false;" /><asp:LinkButton 
        ID="BtnFinish" runat="server" Text="Finish" SkinID="EditSecondary" OnClick="BtnFinish_Click"></asp:LinkButton>
    </div>

<div style="clear: both; margin: 16px; font-size: 16px;font-family:Arial;">
    <h3>Score Criteria(The score is from 0 to 10)</h3>
    <ol>
        <li>Customer Value 客户价值
            <ul style="list-style-type:none;">
                <li>10&nbsp;—&nbsp;I will buy the product because of it.     我会因为这个功能而购买此产品	</li>
                <li>5&nbsp;&nbsp;&nbsp;—&nbsp;It is nice to have but I do not want to pay for it.     有此功能很好,但我不会为此付钱</li>
                <li>0&nbsp;&nbsp;&nbsp;—&nbsp;Do not care about it.      不介意是否有此功能</li>
                <li>N&nbsp;&nbsp;—&nbsp;Cloud not evaluate this item        我无法评估此项</li>
            </ul>
        </li>

        <li>Business Value   业务价值
            <ul style="list-style-type:none;">
                <li>10&nbsp;—&nbsp;A great idea, it will obviously promote our brand, increase our revenue and market share.       非常好的功能,它可以明显提升我们的品牌价值、提升利润和市场占有率</li>
                <li>5&nbsp;&nbsp;&nbsp;—&nbsp;A differentiate feature with which we can have advantages in market.     一个有产品差异的功能，可以让我们在市场领先</li>
                <li>0&nbsp;&nbsp;&nbsp;—&nbsp;No value for selling more products.     对销售更多产品没有价值</li>
                <li>N&nbsp;&nbsp;—&nbsp;Cloud not evaluate this item       我无法评估此项</li>
            </ul>
        </li>

        <li>Technical feasibility    技术可行
            <ul style="list-style-type:none;">
                <li>10&nbsp;—&nbsp;Available technology (Whth in 0.5 years)       在半年内技术可以实现</li>
                <li>5&nbsp;&nbsp;&nbsp;—&nbsp;Available but need further implement efforts. (Whth in 1.5 year)      技术可行，但需要1.5年的时间实现</li>
                <li>0&nbsp;&nbsp;&nbsp;—&nbsp;Extreamly difficult and need more than 3 years to implement it.     非常困难，需要3年以上的时间才能实现</li>
                <li>N&nbsp;&nbsp;—&nbsp;Cloud not evaluate this item      我无法评估此项</li>
            </ul>
        </li>
    </ol>
</div>